package com.sir.tao.carhire.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sir.tao.carhire.dao.CarTypeDao;
import com.sir.tao.carhire.entity.table.CarTypeEntity;
import com.sir.tao.carhire.service.CarTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dyy
 * @data 2022/1/1 15:27
 * @description:
 */
@Service
public class CarTypeServiceImpl extends ServiceImpl<CarTypeDao, CarTypeEntity> implements CarTypeService {

    @Resource
    private CarTypeDao carTypeDao;

    @Override
    public List<CarTypeEntity> getAll() {
        return carTypeDao.getAll();
    }

    @Override
    public int add(CarTypeEntity carTypeEntity) {
        return carTypeDao.add(carTypeEntity);
    }

    @Override
    public int delete(String carTypeId) {
        return carTypeDao.delete(carTypeId);
    }

}
